package com.ggh.jinjilive.views.adapter;

import android.app.Person;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.ggh.jinjilive.R;
import com.ggh.jinjilive.mobile.mall.MallPointsClass;

import java.util.List;

public class ColumnAdapter extends BaseAdapter {
    private Context mContext;
    private List<MallPointsClass> mallPointsClassList;


    public ColumnAdapter(Context pContext, List<MallPointsClass> mallPointsClassList) {
        this.mContext = pContext;
        this.mallPointsClassList = mallPointsClassList;
    }


    @Override
    public int getCount() {
        return mallPointsClassList.size();
    }

    @Override
    public Object getItem(int i) {
        return mallPointsClassList.get(i);
    }

    @Override
    public long getItemId(int i) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup viewGroup) {
        LayoutInflater _LayoutInflater=LayoutInflater.from(mContext);
        convertView =_LayoutInflater.inflate(R.layout.item_text, null);
        if(convertView!=null) {
            TextView _TextView1=(TextView)convertView.findViewById(android.R.id.text1);
            _TextView1.setText(mallPointsClassList.get(position).getName());
            _TextView1.setTextSize(14);
        }
        return convertView;
    }
}
